import http from "@/utils/http";

export default {
    // 获取产品列表
    getShop_type: (data:object) =>
        http.get(
            "/Admin/getShopTypeList",
            {
               params:{...data}
            }
           ),
    // 修改产品
    updaShop_type: (data:object) =>
        http.post(
            "/Admin/updateShopType",
            {
                    ...data

            }
        ),
    // 新增产品
    addShop_type: (data:object) =>
        http.post(
            "/Admin/addShopType",
            {
                    ...data
            }
        ),
    // 删除产品
    deleteShop_type: (data:object) =>
        http.post(
            "/Admin/deleteShopType",
            {
                    ...data
            }
        ),
    // 获取产品分类列表
    getShop_class: (data:object) =>
        http.get(
            "/Admin/getShopClass",
            {
                params:{...data}
            }
        ),
};
